import request from '../utils/request'
export const getList =params=>request({
    method:'GET',
    url:'/roles',
    params
})

export function addList(data) {
    return request({
        url:'/roles',
        method:'POST',
        data
    })
}
// export function delList(id) {
//     return request({
//         url:`/roles/${id}`,
//         method:'delete',
        
//     })
// }